package com.system.connect.springboot_flowers.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.system.connect.springboot_flowers.entity.PostMetrics;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 帖子信息 服务类
 * </p>
 *
 * @author yang
 * @since 2025-02-19
 */
public interface IPostMetricsService extends IService<PostMetrics> {

    boolean exists(QueryWrapper<PostMetrics> queryWrapper);
    
    /**
     * 根据帖子ID获取帖子指标
     * @param postId 帖子ID
     * @return 帖子指标对象
     */
    PostMetrics getByPostId(Integer postId);
}
